package cn.com.gof.create.prototype;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>Title: Sheep</p>  
 * <p>Description: </p>  
 * @author WangJun
 * @date 2018年9月6日 下午2:31:29
 */
public class Sheep implements Cloneable,Serializable{
	private String name;
	private Date birthDate;
	
	public Sheep(String name,Date birthDate) {
		this.name = name;
		this.birthDate = birthDate;
	}
	@Override
	protected Object clone() throws CloneNotSupportedException {
		Object object = super.clone();
//		Sheep sheep = (Sheep) object;
//		this.birthDate = (Date) sheep.birthDate.clone();
		return object;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Date getBirthDate() {
		return birthDate;
	}

	public void setBirthDate(Date birthDate) {
		this.birthDate = birthDate;
	}
	
}
